﻿using System;

namespace Program06
{
    class Program
    {
        static void Main(string[] args)
        {
            int max;//最大值
            int min;//最小值
            int num;//输入的整数
            Console.WriteLine("请输入一个整数（输入0结束）");
            num = max = min = Convert.ToInt32(Console.ReadLine());
            while (num != 0)
            {
                if (num > max)
                {
                    max = num;
                }
                else if (num < min)
                {
                    min = num;
                }
                Console.WriteLine("请输入一个整数（输入0结束）");
                num = Convert.ToInt32(Console.ReadLine());
                if (num == 0)
                {
                    Console.WriteLine("结束");
                }                
            }

            Console.WriteLine("最大值：" + max + "   " + "最小值:" + min);
            Console.WriteLine();
            MultiplicationTable multiplicationTable = new MultiplicationTable();
            Console.WriteLine(multiplicationTable.Haskell());
        }
    }
}
